package com.ruoyi.project.system.manager.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.system.manager.domain.Manager;
import com.ruoyi.project.system.manager.mapper.ManagerMapper;
import com.ruoyi.project.system.manager.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 公告管理  业务层
 * @author LHF
 */
@Service
public class ManagerServiceImpl implements ManagerService {

    @Autowired
    private ManagerMapper managerMapper;

    @Override
    public List<Manager> selectAllManager(String title) {
        return managerMapper.selectAllManager(title);
    }

    @Override
    public int removeById(String ids) {
        return managerMapper.deleteManagerById(Convert.toStrArray(ids));
    }

    @Override
    public Manager queryManagerById(Long id) {
        return managerMapper.selectManagerById(id);
    }
}
